<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <title>美优萌宠</title>
    <link rel="shortcut icon" href="/static/img/favicon.png" />
    <!-- global-->
    <link rel="stylesheet" type="text/css" href="/static/css/global/reset.css">
    <link rel="stylesheet" type="text/css" href="/static/css/global/layout.css">
    <link rel="stylesheet" type="text/css" href="/static/css/global/iconfont.css">
    <link rel="stylesheet" type="text/css" href="/static/css/module/header.css">
    <link rel="stylesheet" type="text/css" href="/static/css/module/footer.css">
    <!-- page-->
    <link rel="stylesheet" type="text/css" href="/static/gallery/form/form.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/page/home/common.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/page/home/release.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/page/home/userinfo.css" />
</head>

<body>
     <assign name="head_tab" value="0" />
     <include file="./Application/Public/View/Header/v1.html"/>
     
    <div id="content">
        <div class="layout-990">
            <div class="left-content">
                <h3>个人资料</h3>
                <div class="release">
                    <form action="__URL__/update" method="post" id="set-info">
                        <input type="hidden" name="id" value="{$user['id']}">
                        <div class="row fd-clr">
                            <label class="form-label">昵称：</label>
                            <div class="formControls">
                                <input type="text" class="input-text" value="{$user['name']}" placeholder="不能超过16个字符" name="name" id="username" datatype="*1-16" nullmsg="昵称不能为空">
                            </div>
                            <div class="form-tip"></div>
                        </div>
                        <div class="row fd-clr">
                            <label class="form-label">年龄：</label>
                            <div class="formControls select-control">
                                <span class="select-box">
                                    <select class="select" name="generation">
                                        <empty name="generation">
                                            <option value="" selected>请选择年龄段</option>
                                        <else />
                                            <option selected value="{$generation}">{$generation}</option>
                                        </empty>
                                        <option value="70前">70前</option>
                                        <option value="70后">70后</option>
                                        <option value="80后">80后</option>
                                        <option value="90后">90后</option>
                                        <option value="00后">00后</option>
                                    </select>
                                </span>
                            </div>
                            <div class="form-tip"></div>
                        </div>
                        <div class="row fd-clr">
                            <label class="form-label">性别：</label>
                            <div class="formControls">
                                <div class="radio-box">
                                    <if condition="$user['sex'] eq 'M' ">
                                        <input type="radio" id="sex-1" name="sex" datatype="*" nullmsg="请选择性别！" value="M"  checked="checked">
                                    <else/>
                                         <input type="radio" id="sex-1" name="sex" datatype="*" nullmsg="请选择性别！" value="M">
                                    </if>
                                    <label for="sex-1">男</label>
                                </div>
                                <div class="radio-box">
                                    <if condition="$user['sex'] eq 'F' ">
                                        <input type="radio" id="sex-2" name="sex" value="F"  checked="checked">
                                    <else/>
                                        <input type="radio" id="sex-2" name="sex" value="F" >
                                    </if>
                                    <label for="sex-2">女</label>
                                </div>
                            </div>
                            <div class="form-tip"></div>
                        </div>
                        <div class="row fd-clr">
                            <label class="form-label">地址：</label>
                            <div class="formControls select-control">
                                <span class="select-box">
                                    <select class="select" size="1" datatype="*" nullmsg="请选择所在城市!" name="city">
                                        <option value="<?php if(!empty($user['city'])){echo $user['city'];} ?>" selected><?php if(!empty($user['city'])){echo $user['city'];}else{echo "请选择城市";} ?></option>
                                        <option value="北京">北京</option>
                                        <option value="上海">上海</option>
                                        <option value="广州">广州</option>
                                    </select>
                                </span>
                            </div>
                            <div class="form-tip select-tip"></div>
                            <label class="form-label margin-top-10"></label>
                            <div class="formControls select-control margin-top-10">
                                <span class="select-box">
                                    <select class="select" size="1" datatype="*" nullmsg="请选择所在地区!" name="area">
                                        <option value="<?php if(!empty($user['area'])){echo $user['area'];} ?>" selected><?php if(!empty($user['area'])){echo $user['area'];}else{echo "请选择地区";} ?></option>
                                        <option value="1">滨江区</option>
                                        <option value="2">上城区</option>
                                        <option value="3">下城区</option>
                                    </select>
                                </span>
                            </div>
                            <div class="form-tip select-tip margin-top-10"></div>
                            <label class="form-label margin-top-10"></label>
                            <div class="formControls width-430 margin-top-10">
                                <input type="text" class="input-text" placeholder="详细地址" name="address" id="username" datatype="*" nullmsg="详细地址不能为空" value="{$user['address']}">
                            </div>
                            <div class="form-tip margin-top-10"></div>
                        </div>
                        <?php
                            $faceImg = '';
                            if(!empty($user['face_img'])){
                                $faceImg = $user['face_img'];
                            }else{
                                $faceImg = "/static/defaulthead.png";
                            }
                        ?>
                        <div class="row fd-clr">
                            <label class="form-label">头像：</label>
                            <div class="img-upload-box">
                                <div class="fd-clr" id="img-box">
                                    <div class="big-img" style='background-image:url(<?php echo $faceImg; ?>);'>
                                    </div>
                                    <div class="small-img"style='background-image:url(<?php echo $faceImg; ?>);'>
                                    </div>
                                </div>

                                <div id="add-img">
                                    <span>
                                        <i class="iconfont">&#xe605;</i>&nbsp;上传头像
                                    </span>
                                </div>
                            </div>
                        </div>
                        <input type="hidden" name="face_img" value="<?php echo $faceImg; ?>" />
                        <div class="fd-clr btn-box">
                            <input class="btn btn-release" type="submit" value="确认">
                        </div>
                    </form>
                </div>
            </div>
            
            <assign name="right_tab" value="3" />
            <include file="./Application/Public/View/Component/right_menu.html"/>
            
        </div>
    </div>
   <include file="./Application/Public/View/Footer/v1.html" />
</body>

<script src="/static/jquery/jquery.min.js"></script>
<script src="/static/gallery/webuploader/webuploader.min.js"></script>
<script src="/static/gallery/validform.js"></script>
<script src="/static/gallery/datepicker/WdatePicker.js"></script>
<script src="/static/js/page/home/userinfo.js"></script>

</html>



